<%--
    Document   : pestanas
    Created on : 16-nov-2010, 10:04:28
    Author     : Victor y Karmele
--%>

<%@page import="java.util.ResourceBundle"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<br>
<div id="pestanas">
<form action="visualizar-alumno-accion.do" name="pestanasAlumnoForm" method="POST">
    <input type="hidden" name="idAlumno" id="idAlumno" value="<%=request.getParameter("idAlumno") %>" />
    <input type="hidden" name="idCurso" id="idCurso" value="<%if (request.getParameter("idCurso")!= null) {%><%=request.getParameter("idCurso")%><%}%>" />
    <input type="hidden" name="idPestanaAlumno" id="idPestanaAlumno" value="<%if (request.getParameter("idPestanaAlumno")!= null) {%><%=request.getParameter("idPestanaAlumno")%><%}else{%>1<%}%>" />
    <ul>
        <li <%if (request.getParameter("idPestanaAlumno")== null || request.getParameter("idPestanaAlumno").trim().equals("1")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasAlumnoForm.idPestanaAlumno.value='1';document.pestanasAlumnoForm.submit()">Calificaci&oacute;n</a></li>
        <li <%if (request.getParameter("idPestanaAlumno")!= null && request.getParameter("idPestanaAlumno").trim().equals("2")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasAlumnoForm.idPestanaAlumno.value='2';document.pestanasAlumnoForm.submit()">Asistencia</a></li>
        <li <%if (request.getParameter("idPestanaAlumno")!= null && request.getParameter("idPestanaAlumno").trim().equals("3")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasAlumnoForm.idPestanaAlumno.value='3';document.pestanasAlumnoForm.submit()">Info Curso</a></li>
        <li <%if (request.getParameter("idPestanaAlumno")!= null && request.getParameter("idPestanaAlumno").trim().equals("4")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasAlumnoForm.idPestanaAlumno.value='4';document.pestanasAlumnoForm.submit()">SMS</a></li>
        <li <%if (request.getParameter("idPestanaAlumno")!= null && request.getParameter("idPestanaAlumno").trim().equals("5")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasAlumnoForm.idPestanaAlumno.value='5';document.pestanasAlumnoForm.submit()">Matr&iacute;culas</a></li>
        <li <%if (request.getParameter("idPestanaAlumno")!= null && request.getParameter("idPestanaAlumno").trim().equals("6")){%> class="activa" <%}%>><a href="javascript:void(1);" onclick="javascript:document.pestanasAlumnoForm.idPestanaAlumno.value='6';document.pestanasAlumnoForm.submit()">Emails</a></li>
    </ul>
</form>
</div>

<div id="contenedorpestanas">
    <%
        String contenidoCurso=null;
        ResourceBundle bundle=(ResourceBundle)application.getAttribute("acciones-mapeo");
        //ResourceBundle bundle=(ResourceBundle)application.getAttribute("vistas-mapeo");
        if (request.getAttribute("contenido-alumno")==null){

         contenidoCurso=bundle.getString("menu-principal");
        }else{
            contenidoCurso=bundle.getString((String)request.getAttribute("contenido-alumno"));
        }
    %>
    <div class="contenido">
    <jsp:include page="<%= contenidoCurso %>" flush="true" />
    </div>
</div>
